package org.xx.armory.config.data;

import org.xx.armory.config.NamedSection;

public class RedisSection
        implements NamedSection {
    private String name;
    private boolean enabled;
    private String uri;
    private int timeout;

    public RedisSection() {
        this.name = "";
        this.enabled = true;
        this.uri = "";
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getName() {
        return this.name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setName(
            String name
    ) {
        this.name = name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final boolean isEnabled() {
        return this.enabled;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setEnabled(
            boolean enabled
    ) {
        this.enabled = enabled;
    }

    public final String getUri() {
        return this.uri;
    }

    public final void setUri(
            String uri
    ) {
        this.uri = uri;
    }

    public final int getTimeout() {
        return this.timeout;
    }

    public final void setTimeout(
            int timeout
    ) {
        this.timeout = timeout;
    }
}
